package com.dsteiner.widgets.client.event;
public class MessageEvent implements Event {

	public static int TYPE_ALERT = 1;
	public static int TYPE_ACTIVITY = 2;
	public static int TYPE_INFO = 3;
	
	private String message;
	private int type = TYPE_ALERT;

	public MessageEvent(String message) {
		this.message = message;
	}
	public MessageEvent(String message, int type) {
		this.message = message;
		this.type = type;
	}

	public String getMessage() {
		return message;
	}
	
	public boolean isAlert(){
		return type == TYPE_ALERT;
	}
	public boolean isActivity(){
		return type == TYPE_ACTIVITY;
	}
	public boolean isInfo(){
		return type == TYPE_INFO;
	}
}
